package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.mappers.OrderLinkUserMapper;
import com.hdax.dm.order.DmOrderLinkUser;
import com.hdax.dm.service.OrderLinkUserService;
import org.springframework.stereotype.Service;

@Service
public class OrderLinkUserServiceImpl extends ServiceImpl<OrderLinkUserMapper,DmOrderLinkUser> implements OrderLinkUserService {

    @Override
    public Boolean delectLinkUser(String orderNo) {
        QueryWrapper wrapper = new QueryWrapper<>();
        wrapper.eq("orderId",orderNo);
        return baseMapper.delete(wrapper) == 1?true:false;
    }
}
